-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DRAFT: serialisation docs #1141
Conversation
Hey there and thank you for opening this pull request! 👋🏼 We require pull request titles to follow the Conventional Commits specification Your title should look like this. The scope field is optional.
If the PR includes a breaking change, mark it with an exclamation mark:
and include a "BREAKING CHANGE:" footer in the body of the pull request. Details:
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1141 +/- ##
==========================================
+ Coverage 86.92% 86.95% +0.03%
==========================================
Files 91 91
Lines 18697 18619 -78
Branches 18304 18222 -82
==========================================
- Hits 16252 16190 -62
+ Misses 1596 1583 -13
+ Partials 849 846 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall
/// Returns the deserialized HUGR. | ||
pub fn check_hugr_schema_roundtrip(hugr: &Hugr) -> Hugr { | ||
check_hugr_roundtrip(hugr, true) | ||
fn ser_deserialize_check_schema<T: serde::de::DeserializeOwned>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fn ser_deserialize_check_schema<T: serde::de::DeserializeOwned>( | |
fn deserialize_check_schema<T: serde::de::DeserializeOwned>( |
Co-authored-by: Seyon Sivarajah <seyon.sivarajah@quantinuum.com>
We modify the schema so that hierarchy edges are stored outside of nodes, just as other edges are.